package com.example.logindb.repository;


import com.example.logindb.entity.Relation;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;


@Repository
public interface RelationRepository extends CrudRepository<Relation, Integer> {

    //通过亲属进行查询
    public Relation findAllByGuardianid(Integer guardian_id);


    Relation findAllByBlindid(int blindid);


    long count();
}
